﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Content.aspx.cs" Inherits="ExercisesResolution.Views.Home.Content" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Content
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<p><b><%=TempData["Message"] %></b></p>
<h2><%= Model.Title %></h2>
<img src="<%= Model.ImageUrl %>" /><br />
<p><%= Model.Description %></p>

<!-- Exercise 4
<% if (Model.License != null)
   { %>
<p>Licensed under the <%= Model.License.Name %> license</p>
<% } %> -->

<!-- Exercise 5 -->
<p><%= WriteLicense("Licensed under the {0} license", Model.License)%></p>
<p>Created on <%= Model.CreationDate.ToShortDateString() %></p>

</asp:Content>
